<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<link rel="stylesheet"
	href="/jquery-easyui-1.5.2/themes/bootstrap/easyui.css"></link>
<link rel="stylesheet" href="/jquery-easyui-1.5.2/themes/icon.css"></link>
<link rel="stylesheet" href="/css/wholeStyle.css"></link>
<script type="text/javascript" src="/jquery-easyui-1.5.2/jquery.min.js"></script>
<script type="text/javascript"
	src="/jquery-easyui-1.5.2/jquery.easyui.min.js"></script>
<script type="text/javascript"
	src="/jquery-easyui-1.5.2/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="/js/initComponent.js"></script>
<script type="text/javascript" src="/js/publicJs.js"></script>
</head>
<body style="margin: 0; padding: 0">	
	<div id="menu"  style="width:150px;">   
	    <div>新增</div>   
	    <div>修改</div>   
	    <div>删除</div>   
	    <div class="menu-sep"></div>   
	    <div>Exit</div>   
	</div> 
	<div id="insertMenu"  style="width:150px;">   
	    <div>保存</div>   
	    <div>放弃</div>   
	</div>  
	
	<div id="pp"
		style="background: #efefef; border: 1px solid #ccc; height: 30px;"></div>
	
	<div class="form-warp">
		<form action="" id="form">
			<!-- 表单中的一行 -->
			<div class="form-children">
				<!-- 表单中的一项 -->
				<div class="form-item">
					<label for="no" class="label-blue">单据号码：</label> <input class="easyui-textbox"
						id="billNo" />
				</div>
				<div class="form-item">
					<label for="date">单据日期：</label> <input class="easyui-datebox"
						id="billDate" />
				</div>
				<div class="form-item">
					<label for="custNo">供应商：</label> <input class="easyui-textbox"
						id="custNo" />
				</div>
				<div class="form-item">
					<label for="addressNo">供应商地址：</label> <input class="easyui-textbox"
						id="addressNo" style="width:50px" /><input class="easyui-textbox"
						id="" 	style="width:90px"/>
				</div>
			</div>
			<div class="form-children">
				<div class="form-item">
					<label for="priceOfTax">单价是否含税：</label> <input id="priceOfTax" />
				</div>
				<div class="form-item">
					<label for="currencyName">币别：</label> <input class="easyui-textbox"
						id="currencyName" />
				</div>
				<div class="form-item">
					<label for="wareNo">仓库：</label> <input class="easyui-textbox"
						id="wareNo" />
				</div>
				<div class="form-item">
					<label for="exchRate">汇率：</label> <input class="easyui-textbox"
						id="exchRate" />
				</div>
			</div>
			<div class="form-children">
				<div class="form-item">
					<label for="isdeduct">是否重新入库：</label> <input id="isdeduct" />
				</div>
				<div class="form-item">
					<label for="masForeignTrade">国外贸易：</label> <input class="easyui-textbox"
						id="masForeignTrade" />
				</div>
				<div class="form-item">
					<label for="">凭证编号：</label> <input class="easyui-textbox"
						id="" />
				</div>
				<div class="form-item">
					<label for="salesName">采购人员：</label> <input class="easyui-textbox"
						id="salesName" />
				</div>
			</div>
			<div class="form-children">
				<div class="form-item">
					<label for="Maker">制单人员：</label> <input class="easyui-textbox"
						id="Maker" />
				</div>
				<div class="form-item">
					<label for="permitter">审核人员：</label> <input class="easyui-textbox"
						id="permitter" />
				</div>
				<div class="form-item">
					<label for="">所属项目：</label> <input class="easyui-textbox"
						id="" />
				</div>
				<div class="form-item">
					<label for="departName">所属部门：</label> <input class="easyui-textbox"
						id="departName" />
				</div>
			</div>
		</form>
	</div>
	
	
	<div class="grid-warp">
		<div class="easyui-tabs" style="height: 200px; width: '100%';flex:1;">
			<div title="内容" style="height: 20px;">
				<table id="cgqgd"></table>
			</div>
			<div title="账款" style="height: 20px;">
				<table id=""></table>
			</div>
			<div title="备注" style="height: 20px;">
				<table id=""></table>
			</div>
		</div>
	</div>
	
	<a href="javascript:void(0)" id="mb" style="width:80px;margin:10px">转单</a>  
	<div id="mm" style="width:110px;">
		<div>采购入库单转入</div> 
	</div> 
	
	<a href="javascript:void(0)" id="mb2" style="width:80px">功能</a>  
	<div id="mm2" style="width:110px">
		<div>批号设定</div> 
		<div>条码打印</div> 
		<div>批量变更单价</div> 
	</div>
	
	<span id="shenhe"></span>
</body>

<script type="text/javascript">

	$(function(){
		initMenu();
		$(".easyui-datebox").datebox("setValue",formatterDate(new Date()));
		
		$("#pp").pagination({
			height : 30,
			layout : [ 'sep' ],
			buttons : [ {
				iconCls : 'icon-my-first',
				handler : function() {
					alert("第一页");
				}
			},{
				iconCls : 'icon-my-prev',
				handler : function() {
				}
			},{
				iconCls : 'icon-my-next',
				handler : function() {
					closeDisabled();
				}
			},{
				iconCls : 'icon-my-last',
				handler : function() {
				}
			},{
				iconCls : 'icon-my-add',
				text : "新增",
				handler : function() {
					var tab=parent.$("#window-tabs").tabs("getSelected");
					changeTabStatus(tab,'新增');
					closeDisabled();
				}
			}, {
				iconCls : 'icon-my-update',
				text : "修改",
				handler : function() {
					alert("修改");
				}
			}, {
				iconCls : 'icon-my-delete',
				text : "删除",
				handler : function() {
					alert("删除");
				}
			}, {
				iconCls : 'icon-my-audit',
				text : "审核",
				handler : function() {
					alert("审核");
					$("#shenhe").hide();
				}
			} ]
		});
		
		$("#priceOfTax").combobox({
			valueField:"value",
			textField:"text",
			editable:false,
			data:[{
				value:0,
				text:"未税",
				selected:true
			},{
				value:1,
				text:"含税"
			}],
			panelHeight:"auto"
		});
		$("#isdeduct").combobox({
			valueField:"value",
			textField:"text",
			editable:false,
			data:[{
				value:0,
				text:"否",
				selected:true
			},{
				value:1,
				text:"是"
			}],
			panelHeight:"auto"
		});
		
		$("form").find(".isdisabled").textbox();//先把从始至终为disabled 的控件初始化
		$("form").find(".isdisabled").textbox("disable");//再把他们设为disabled
		openDisabled();
		
		$("#cgqgd").datagrid({
			fit : true,
			rownumbers : true,
			columns : [ [ {
				field : 'lineId',
				title : "(栏号)",
				width : 50,
				sortable:true
			}, {
				field : 'prodNo',
				title : "物料编号",
				width : 120,
				sortable:true
			}, {
				field : 'prodName',
				title : "(物料名称)",
				width : 120,
				sortable:true
			}, {
				field : 'prodSize',
				title : "(规格型号)",
				width : 100,
				sortable:true
			}, {
				field : 'unitName',
				title : "(单位名称)",
				width : 70
			}, {
				field : 'sQuantity',
				title : "数量",
				width : 50
			}, {
				field : 'oldPrice',
				title : "折扣前单价",
				width : 100
			}, {
				field : 'discount',
				title : "折数(%)",
				width : 100
			}, {
				field : 'sPrice',
				title : "单价",
				width : 100
			}, {
				field : 'amount',
				title : "金额",
				width : 100
			}, {
				field : 'TaxRate',
				title : "税率",
				width : 100
			}, {
				field : 'TaxAmt',
				title : "税额",
				width : 80
			}, {
				field : 'amountATax',
				title : "(含税金额)",
				width : 100
			} , {
				field : 'a212',
				title : "(批号)",
				width : 100
			} , {
				field : 'a1231212',
				title : "赠品",
				width : 100
			} , {
				field : 'ad212',
				title : "发票明细",
				width : 100
			} , {
				field : 'ad212',
				title : "(未开票数量)",
				width : 100
			} , {
				field : 'Other',
				title : "(分录备注)",
				width : 100
			} , {
				field : 'tranType',
				title : "(来源单别)",
				width : 100
			} , {
				field : 'fromNo',
				title : "(来源单号)",
				width : 100
			} ] ]
		});
		
		$('#mb').menubutton({    
		    menu: '#mm'  
		}); 
		$('#mb2').menubutton({   
		    menu: '#mm2'  
		});
		
		
	});

</script>

</html>